<html>
<head>

<title>Testing the positioning</title>

<script>

var timer = setInterval(arrange,20);

function arrange()
{

	//document.layers['tobechanged'].left += 20;
	//document.all['tobechanged'].style.left += 20;
	document.getElementById("tobechanged").style.left += 20;

	//document.layers['tobechanged'].top += 20;
	//document.all['tobechanged'].style.top += 20;
	document.getElementById("tobechanged").style.top += 20;

	
}
</script>

</head>
<body onLoad="arrange()">

body content

<div id="tobechanged" style="position: absolute; left: 400; top: 100; width: 200; height: 200; z-index: 1; visibility: visible;">
<img src="ball.gif">
</div>

</body>
</html>